package com.lightsh.light;

import android.content.Context;
import android.os.Build;

public class Light {
	static {
        System.loadLibrary("light-jni");
    }
	
	public static final int MAX_BRIGHTNESS_LEVEL = 4;
	public static boolean isAvailable(){
		return Build.DEVICE != null && (Build.DEVICE.toLowerCase().startsWith("mx") || Build.DEVICE.toLowerCase().equals("smdk4x12") || Build.DEVICE.toLowerCase().startsWith("tf"));
	}
	
	public static native boolean isOpen();
	public static native void open();
	public static native void close();
	public static native void set(int cur);
	public static native String getPackageName(Context context);
}
